package demo.action;

import java.util.List;

import com.jfinal.core.Controller;
import com.jfinal.plugin.activerecord.Db;
import com.jfinal.plugin.activerecord.Record;

public class TestJFinal extends Controller{
	public void index(){
		render("autocomplete.jsp");
	}
	public void welCome(){
		render("welcome.jsp");
	}

	public void getAutoDatas(){
		List<Record> users = Db.find("select loginId regionCode,UserName regionName from user");
		renderJson(users);
	}
}
